import Vue from 'vue'
import App from './App.vue'
import router from './router'
import { initBeidou, initWMDA } from '@epfe/utils'

// 初始化北斗
initBeidou({
  projectId: 1001,
  overtime: 60 * 1000
})

// 初始化WMDA
initWMDA({
  appid: 111222333,
  key: 'xxx',
  project_id: '19481878409907'
})

// 引入mds-ui
import '@mdsfe/mds-ui/dist/mds-ui.min.css' // 引入组件的样式
import MdsUi from '@mdsfe/mds-ui' // 引入组件
Vue.use(MdsUi) // 使用组件

// 全局样式
import '@/styles/index.scss'

Vue.config.productionTip = false

const tempVue = new Vue({
  router,
  render: (h: any) => h(App)
}).$mount('#app')

window.$message = tempVue.$message
window.$message.config({
  duration: 2
})
